 {

        var o = require("./UIPopupBase.js");
        cc.Class({
            extends: o,
            properties: {
                title: {
                    default: null,
                    type: cc.Label
                },
                content: {
                    default: null,
                    type: cc.Label
                }
            },
            onLoad: function () {
                var e = [{
                    strTitle: "嘻嘻.* _ *.",
                    strContent: "来都来了，点个广告放松一下呗～～"
                }, {
                    strTitle: "(@′ω`@）",
                    strContent: "讨厌～，是点我说的气泡，不是点我的身体啦"
                }, {
                    strTitle: "（#￣▽￣#）",
                    strContent: "哎呀，你的手指好厉害哦，那。。。"
                }, {
                    strTitle: "○（*￣o￣*）○",
                    strContent: "哇，原来你是这样的人。。。"
                }, {
                    strTitle: "=^_^=",
                    strContent: "亲，再点下面试试咯"
                }], t = e.length, n = Global.utils.randomInt(0, t - 1);
                console.log("Panel_advertise: index= ", n);
                var o = e[n];
                o && o.strTitle && o.strContent && (this.title.string = o.strTitle, this.content.string = o.strContent,
                    console.log("this.title.string= " + this.title.string + "this.content.string= " + this.content.string));
            },
            OnCoinBtnClick: function () {
                console.log("OnCoinBtnClick");
                var e = (Global.configCdn.getActivityAndTaskConf() || Global.configCdn.getDefaultConfig("activityAndTask")).videotask,
                    t = this;
                if (Global.config.AlreadyWatchVideoNums >= 4) this.OnPanelClose(), Global.utils.showNodeCommon("小妹今天的金币送完了哦，还有分享金币可以领哦，试一下吧！", 2),
                    Global.UIPopupManager.addPopup("PopupPanel/Panel_InviteFri", function (e) {
                    }); else {
                    var n = e[0].taskId, o = e[0].kindId;
                    Global.utils.showViewAd(Global.config.adTaskUnitId, function () {
                        t.scheduleOnce(function () {
                            var e = {
                                taskId: n,
                                kindId: o,
                                type: 0
                            };
                            Global.msgHandler.requestGetVideoReward(e);
                        }, .6);
                        var e = [{
                            str: "^_^"
                        }, {
                            str: "(=^_^=)"
                        }, {
                            str: "^o^/"
                        }], i = e.length, a = Global.utils.randomInt(0, i - 1), r = e[a];
                        console.log("successCallBack: index= ", a), r && r.str && Global.utils.showNodeCommon(r.str, 1.6);
                    }, function () {
                        Global.utils.showNodeCommon("您在播放中途退出，无法领取小妹送的金币哦～", 3);
                    });
                }
            },
            OnPanelClose: function () {
                this.closePanel();
            }
        })
    }